/*
 * Created on May 15, 2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package com.lite.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.SwingConstants;

/**
 * @author Isabelle
 * 
 *         To change the template for this generated type comment go to
 *         Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class AboutPanel extends JPanel implements ActionListener {
	/**
     * 
     */
	private static final long serialVersionUID = 179927281520551276L;

	/**
	 * 
	 */
	public AboutPanel(JDialog argJDialog) {
		super();
		init();
	}

	/**
	 * @param arg0
	 */
	private void init() {
		ImageIcon tmpImageIcon = new ImageIcon("images/yoda.gif");
		JPanel topPanel = new JPanel();
		JPanel bottumPanel = new JPanel();
		JLabel spaceLable = new JLabel("       ");
		spaceLable.setMaximumSize(new Dimension(10, 10));
		JLabel tmpJLabel = new JLabel(
				"<html> V2.0 Beta 3 <P>Pklite SQL Client is a modified version of a program<P>called Pretty Kid For more information about Pretty Kid<P>click on the about pretty kid button<p><A href=\"http://pklite.sourceforge.net/\">pklite.sourceforge.net</A>");
		JLabel imgLabel = new JLabel(tmpImageIcon);

		topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.LINE_AXIS));
		topPanel.add(spaceLable);
		topPanel.add(imgLabel);
		topPanel.add(spaceLable);
		topPanel.add(tmpJLabel);

		bottumPanel.setLayout(new BorderLayout());

		setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
		add(topPanel);
		add(new JSeparator(SwingConstants.HORIZONTAL));
		add(bottumPanel);
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		
	}


}
